﻿$(windowResize)

$(window).resize(function () {
    windowResize();
});

function windowResize() {
    var width = $(window).width();
    if (width <= 1100) {
        $("#container_r").css("width", "650px");
        $("#container").css("width", "980px");
    } else {
        $("#container_r").css("width", "750px")
        $("#container").css("width", "1100px")
    }

    var height = $(window).height();

    if (height > 800) {
        $("body").css("padding-top", "4%");

    } else if (height > 650) {
        $("body").css("padding-top", "2%");
    } else {
        $("body").css("padding-top", "20px");
    }

    $("body").css("-moz-background-size", "100% " + $(document).height() + "px ");
    $("body").css("background-size", "100% " + $(document).height() + "px ");
    RunFlip();
}